//
//  E7EffectManager.cpp
//  EndlessBattle
//
//  Created by cc on 12-4-12.
//  Copyright (c) 2012年 PalmGame. All rights reserved.
//

#include "E7EffectManager.h"

CE7EffectManager* s_pEffectManager = NULL ;

CE7EffectManager::CE7EffectManager()
{
}

CE7EffectManager::~CE7EffectManager()
{
}

void CE7EffectManager::LoadEffect(const char* filename)
{
}

void CE7EffectManager::Update()
{
}

// test codes.
void CE7EffectManager::PlayEffect(const char* filename, CCLayer* pLayer)
{
    CCParticleSystem* pE = new CCParticleSystemQuad() ;
    pE->autorelease() ;
    if (!pE->initWithFile(filename))
    {
        printf("init with file error ----\n") ;
    }
    pE->setPosition(CCPointMake(pE->getPosition().x, pE->getPosition().y-50)) ;
    pLayer->addChild(pE) ;
}

void CE7EffectManager::StopEffect(const char* filename, CCLayer* pLayer)
{
}















